package cn.edu.hdu.relationSystem.relationOperation.command;

import cn.edu.hdu.relationSystem.relationOperation.receiver.CommandReceiver;

public abstract class OperateCommand {
    public CommandReceiver commandReceiver;
    public String operate;

    public OperateCommand(CommandReceiver commandReceiver) {
        this.commandReceiver = commandReceiver;
    }

    public OperateCommand(CommandReceiver commandReceiver, String operate) {
        this.commandReceiver = commandReceiver;
        this.operate = operate;
    }

    abstract public void executeCommand();

    abstract public void cancelCommand();

}
